package toubiao.domain.po.business;


import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;

@Entity
@Table(name = "reward_photo")
@PrimaryKeyJoinColumn(name="id")
@DynamicUpdate(true)
public class PoRewardPhoto extends PoPhoto {

	private PoReward reward;

	
	private int seqInType;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "reward_id")
	public  PoReward getReward() {
		return reward;
	}

	public void setReward(PoReward reward) {
		this.reward = reward;
	}

	public int getSeqInType() {
		return seqInType;
	}

	public void setSeqInType(int seqInType) {
		this.seqInType = seqInType;
	}
	
}
